<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <title>计划物料系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <script src="../static/bootstrap5.0.1/bootstrap5/bootstrap.bundle.min.js"></script>
    <link rel="stylesheet" href="../static/bootstrap5.0.1/bootstrap5/bootstrap.min.css">
    <script src="../static/jquery-3.6.3.min.js"></script>
    <script src="../static/Layui_V2.5.6/layui/src/lay/modules/layer.js"></script>
    <link rel="stylesheet" href="../static/Layui_V2.5.6/layui/dist/css/layui.css">
    .layui-table-cell {
    height: 40px;
    line-height: 40px;
    }
    </style>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../static/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../static/layuiadmin/style/admin.css" media="all">
    <script src="../static/layuiadmin/layui/layui.js"></script>
    <script>
        /^http(s*):\/\//.test(location.href) || alert('请先部署到 localhost 下再访问');
    </script>
</head>
<!--layadmin-themealias="purple-red-header fashion-red-header"-->
<body class="layui-layout-body" layadmin-themealias="green-header" id="body">
<div id="LAY_app">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <!-- 头部区域 -->
            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item layadmin-flexible" lay-unselect>
                    <a href="javascript:;" layadmin-event="flexible" title="侧边伸缩">
                        <i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
                    </a>
                </li>
                <li class="layui-nav-item layui-hide-xs" lay-unselect>
                    <a href="https://www.baidu.com" target="_blank" title="前台">
                        <i class="layui-icon layui-icon-website"></i>
                    </a>
                </li>
                <li class="layui-nav-item" lay-unselect>
                    <a href="javascript:;" layadmin-event="refresh" title="刷新">
                        <i class="layui-icon layui-icon-refresh-3"></i>
                    </a>
                </li>
                <li class="layui-nav-item layui-hide-xs" lay-unselect style="display:none;">
                    <input type="text" placeholder="搜索..." autocomplete="off" class="layui-input layui-input-search"
                           layadmin-event="serach" lay-action="template/search.html?keywords=">
                </li>
            </ul>
            <ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">

                <li class="layui-nav-item" lay-unselect style="display:none;">
                    <a lay-href="app/message/index.html" layadmin-event="message" lay-text="消息中心">
                        <i class="layui-icon layui-icon-notice"></i>

                        <!-- 如果有新消息，则显示小圆点 -->
                        <span class="layui-badge-dot"></span>
                    </a>
                </li>
                <li class="layui-nav-item layui-hide-xs" lay-unselect>
                    <a href="javascript:;" layadmin-event="theme">
                        <i class="layui-icon layui-icon-theme"></i>
                    </a>
                </li>
                <li class="layui-nav-item layui-hide-xs" lay-unselect style="display:none;">
                    <a href="javascript:;" layadmin-event="note">
                        <i class="layui-icon layui-icon-note"></i>
                    </a>
                </li>
                <li class="layui-nav-item layui-hide-xs" lay-unselect>
                    <a href="javascript:;" layadmin-event="fullscreen">
                        <i class="layui-icon layui-icon-screen-full"></i>
                    </a>
                </li>
                <li class="layui-nav-item" lay-unselect>
                    <a href="javascript:;">
                        <cite>{{ username }}</cite>
                    </a>
                    <dl class="layui-nav-child">
                        <!-- <dd><a lay-href="/user/detail">基本资料</a></dd>
                        <dd><a lay-href="/user/changemsg">修改密码</a></dd> -->
                        <dd><a lay-href="/user/loginout">退出</a></dd>
                    </dl>
                </li>

                <li class="layui-nav-item layui-hide-xs" lay-unselect style="display:none;">
                    <a href="javascript:;" layadmin-event="about"><i
                            class="layui-icon layui-icon-more-vertical"></i></a>
                </li>
                <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-unselect style="display:none;">
                    <a href="javascript:;" layadmin-event="more"><i class="layui-icon layui-icon-more-vertical"></i></a>
                </li>
            </ul>
        </div>

        <!-- 侧边菜单 -->
        <div class="layui-side layui-side-menu">
            <div class="layui-side-scroll">
                <div class="layui-logo" lay-href="/index">
                    <span><a href="http://www.skyworth.com/" target="_blank" style="font: 20px bold;font-family:  ">Material Plan</a></span>
                </div>
                <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu"
                    lay-filter="layadmin-system-side-menu">

                    <!--                     layui-nav-itemed-->
                    <li data-name="predict" class="layui-nav-item layui-nav-itemed">
                        <a lay-tips="资产管理" lay-direction="1">
                            <i class="layui-icon layui-icon-app">
                                <cite>&nbsp;资产管理</cite>
                            </i>
                        </a>
                        <dl class="layui-nav-child">
                            <!--                             class="layui-this"-->
                            <dd data-name="org_manager">
                                <a lay-href="/api/material/material_manager_page">
                                    <i class="layui-icon layui-icon-about">
                                        <cite>&nbsp;&nbsp;资产类型</cite>
                                    </i>
                                </a>
                            </dd>
                        </dl>
                        <dl class="layui-nav-child">
                            <dd data-name="org_manager">
                                <a lay-href="/api/material/quantity_manager_page">
                                    <i class="layui-icon layui-icon-engine">
                                        <cite>&nbsp;&nbsp;物料管理</cite>
                                    </i>
                                </a>
                            </dd>
                        </dl>
                        <dl class="layui-nav-child">
                            <dd data-name="predict_log">
                                <a lay-href="/api/xh/xh_manager_page">
                                    <i class="layui-icon layui-icon-addition">
                                        <cite>&nbsp;&nbsp;型号管理</cite>
                                    </i>
                                </a>
                            </dd>
                        </dl>
                        <!--                        <dl class="layui-nav-child">-->
                        <!--                            <dd data-name="predict_result_preview">-->
                        <!--                                <a lay-href="/gx/gx_manager">-->
                        <!--                                    <i class="layui-icon layui-icon-release"></i>-->
                        <!--                                    <cite>型号关系</cite>-->
                        <!--                                </a>-->
                        <!--                            </dd>-->
                        <!--                        </dl>-->
                    </li>
                    <li data-name="component" class="layui-nav-item">
                        <a href="javascript:;" lay-tips="计划管理" lay-direction="1">
                            <i class="layui-icon layui-icon-app">
                                <cite>&nbsp;计划管理</cite>
                            </i>
                        </a>
                        <dl class="layui-nav-child">
                            <dd data-name="predict_result">
                                <a lay-href="/api/plan/plan_manager_page">
                                    <i class="layui-icon layui-icon-chart">
                                        <cite>&nbsp;&nbsp;物料计划</cite>
                                    </i>
                                </a>
                            </dd>
                        </dl>
<!--                        <dl class="layui-nav-child">-->
<!--                            <dd data-name="predict_result">-->
<!--                                <a lay-href="/api/plan/dynamic_plan">-->
<!--                                    <i class="layui-icon layui-icon-addition">-->
<!--                                        <cite>&nbsp;&nbsp;动态执行</cite>-->
<!--                                    </i>-->
<!--                                </a>-->
<!--                            </dd>-->
<!--                        </dl>-->
                    </li>
                    <li data-name="component" class="layui-nav-item">
                        <a href="javascript:;" lay-tips="计划验证" lay-direction="1">
                            <i class="layui-icon layui-icon-app">
                                <cite>&nbsp;计划验证</cite>
                            </i>
                        </a>
                        <dl class="layui-nav-child">
                            <dd data-name="button">
                                <a lay-href="/api/plan/plan_result_manager">
                                    <i class="layui-icon layui-icon-chart">
                                        <cite>&nbsp;&nbsp;计划结果</cite>
                                    </i>
                                </a>
                            </dd>
                        </dl>
                        <dl class="layui-nav-child">
                            <dd data-name="button">
                                <a lay-href="/api/plan/plan_other_manager">
                                    <i class="layui-icon layui-icon-chart-screen">
                                        <cite>&nbsp;&nbsp;计划总结</cite>
                                    </i>
                                </a>
                            </dd>
                        </dl>
                        <dl class="layui-nav-child">
                            <dd data-name="button">
                                <a lay-href="/api/data/data_manager_page">
                                    <i class="layui-icon layui-icon-form">
                                        <cite>&nbsp;&nbsp;材料使用率</cite>
                                    </i>
                                </a>
                            </dd>
                        </dl>
                    </li>
                    {% for premiss_dic in premission_list%}
                    {% for title, values in premiss_dic.items()%}
                    <li data-name="component" class="layui-nav-item">
                        <a href="javascript:;" lay-tips="{{title}}" lay-direction="1">
                            <i class="layui-icon layui-icon-component"></i>
                            <cite>{{title}}</cite>
                        </a>
                        {%for item in values%}
                        <dl class="layui-nav-child">
                            <dd data-name="button">
                                <a lay-href="{{item.get('url')}}">{{item.get("title")}}</a>
                            </dd>
                        </dl>
                        {%endfor%}
                    </li>
                    {%endfor%}
                    {%endfor%}
                    <!-- <li data-name="component" class="layui-nav-item">
                        <a href="javascript:;" lay-tips="系统配置" lay-direction="2">
                            <i class="layui-icon layui-icon-component"></i>
                            <cite>系统配置</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd data-name="button">
                                <a lay-href="/user/get_user">用户信息</a>
                            </dd>
                        </dl>
                        <dl class="layui-nav-child">
                            <dd data-name="button">
                                <a lay-href="/sys/business">业务配置</a>
                            </dd>
                        </dl>
                        <dl class="layui-nav-child">
                            <dd data-name="button">
                                <a lay-href="/sys/menu">菜单配置</a>
                            </dd>
                        </dl>
                        <dl class="layui-nav-child">
                            <dd data-name="button">
                                <a lay-href="/sys/index">页面配置</a>
                            </dd>
                        </dl>
                        <dl class="layui-nav-child">
                            <dd data-name="button">
                                <a lay-href="/yindao/rpaconfig">RPA旧账户配置</a>
                            </dd>
                        </dl>
                        <dl class="layui-nav-child">
                            <dd data-name="button">
                                <a lay-href="/yindao/jingzheng">竞店竞品配置</a>
                            </dd>
                        </dl>
                        <dl class="layui-nav-child">
                            <dd data-name="button">
                                <a lay-href="/yindao/ydconfig">应用配置</a>
                            </dd>
                        </dl>
                        <dl class="layui-nav-child">
                            <dd data-name="button">
                                <a lay-href="/yindao/yddzconfig">日期对照配置</a>
                            </dd>
                        </dl>
                    </li>
                    <li data-name="component" class="layui-nav-item">
                        <a href="javascript:;" lay-tips="RPA操作" lay-direction="3">
                            <i class="layui-icon layui-icon-component"></i>
                            <cite>RPA操作</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd data-name="button">
                                <a lay-href="/yindao/datasjcx">数据查询</a>
                            </dd>
                        </dl>
                        <dl class="layui-nav-child">
                            <dd data-name="button">
                                <a lay-href="/rpa/index">数据监控</a>
                            </dd>
                        </dl>
                    </li>
                    <li data-name="component" class="layui-nav-item">
                        <a href="javascript:;" lay-tips="自动化" lay-direction="4">
                            <i class="layui-icon layui-icon-component"></i>
                            <cite>自动化</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd data-name="button">
                                <a lay-href="/automation/data_init">平台账户</a>
                            </dd>
                        </dl>
                        <dl class="layui-nav-child">
                            <dd data-name="button">
                                <a lay-href="/gk/index">港口配置</a>
                            </dd>
                        </dl>
                        <dl class="layui-nav-child">
                            <dd data-name="button">
                                <a lay-href="/automation/app_config">应用配置</a>
                            </dd>
                        </dl>
                        <dl class="layui-nav-child">
                            <dd data-name="button">
                                <a lay-href="/automation/download_history">下载记录</a>
                            </dd>
                        </dl>
                    </li>
                    <li data-name="component" class="layui-nav-item">
                        <a href="javascript:;" lay-tips="影刀管理" lay-direction="5">
                            <i class="layui-icon layui-icon-component"></i>
                            <cite>影刀管理</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd data-name="button">
                                <a lay-href="/rpa/rboot">机器人管理</a>
                            </dd>
                        </dl>
                        <dl class="layui-nav-child">
                            <dd data-name="button">
                                <a lay-href="/zdy/zdy_index" id="zxzdy">Excel数据操作</a>
                            </dd>
                        </dl>
                        <dl class="layui-nav-child">
                            <dd data-name="button">
                                <a lay-href="/interface/index">接口管理</a>
                            </dd>
                        </dl>
                    </li>
                    <li data-name="component" class="layui-nav-item">
                        <a href="javascript:;" lay-tips="报表管理" lay-direction="5">
                            <i class="layui-icon layui-icon-component"></i>
                            <cite>报表管理</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd data-name="button">
                                <a lay-href="/report/jddz">京东对账数据同步</a>
                            </dd>
                        </dl>
                    </li> -->
                </ul>
            </div>
        </div>

        <!-- 页面标签 -->
        <div class="layadmin-pagetabs" id="LAY_app_tabs">
            <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
            <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
            <div class="layui-icon layadmin-tabs-control layui-icon-down">
                <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
                    <li class="layui-nav-item" lay-unselect>
                        <a href="javascript:;"></a>
                        <dl class="layui-nav-child layui-anim-fadein">
                            <dd layadmin-event="closeThisTabs"><a href="javascript:;">关闭当前标签页</a></dd>
                            <dd layadmin-event="closeOtherTabs"><a href="javascript:;">关闭其它标签页</a></dd>
                            <dd layadmin-event="closeAllTabs"><a href="javascript:;">关闭全部标签页</a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
            <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
                <ul class="layui-tab-title" id="LAY_app_tabsheader">
                    <li lay-id="console_id" lay-attr="console_attr" class="layui-this"><i
                            class="layui-icon layui-icon-home"></i></li>
                </ul>
            </div>
        </div>
        <!-- 主体内容 -->
        <div class="layui-body" id="LAY_app_body">
            <div class="layadmin-tabsbody-item layui-show">
                <iframe src="/api/material/material_manager_page" frameborder="0" class="layadmin-iframe"
                        id="frame"></iframe>
            </div>
        </div>
        <!-- 辅助元素，一般用于移动设备下遮罩 -->
        <div class="layadmin-body-shade" layadmin-event="shade"></div>
        <div>
            <ul>
                <li id="theme" layadmin-event="setTheme" data-index="13" data-alias="fashion-red-header"
                    title="fashion-red-header"
                    class="layui-this">
                    <div class="layadmin-setTheme-header" style="background-color: #AA3130;"></div>
                    <div class="layadmin-setTheme-side" style="background-color: #28333E;">
                        <div class="layadmin-setTheme-logo" style="background-color: #28333E;"></div>
                    </div>
                </li>
            </ul>

        </div>
    </div>
</div>
<script>
    layui.config({
        base: '../static/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index', //主入口模块,
        excel: 'excel'
    }).use('index');
</script>
<script>
    layui.use(['jquery', 'element'], function () {
        let theme = {"theme": {"color": {"logo": "#226A62", "header": "#2F9688", "alias": "green-header", "index": 9}}}
        let timer = setTimeout(function () {
            localStorage.setItem('layuiAdmin', JSON.stringify(theme))
            // window.location.refresh();
        }, 1000)
    })
</script>